

function addSensorbitCod(Blockly) {




    //led
   Blockly.Python.microbit_led = function(block) {
    var dropdown_ledPort = this.getFieldValue('ledPort');
    var dropdown_ledStatus = this.getFieldValue('ledStatus');
    Blockly.Python.definitions_['import_microbit'] = 'from microbit import *';
    Blockly.Python.definitions_['import_LED'] = 'from monitor import led';
    var code = "led.light("+dropdown_ledPort+', '+dropdown_ledStatus+')\n';
    return code;
 }
    return Blockly;
}

module.exports = addSensorbitCod;

